import { createApp } from 'vue'
import { globalRegisterApp } from './global'
import 'normalize.css'
import './assets/css/index.less'

import App from './App.vue'
import router from './router'
import store from './store'
import { setupStore } from './store/index'
// import txios from './servies'

const app = createApp(App)
app.use(globalRegisterApp)
setupStore()
app.use(router)
app.use(store)

app.mount('#app')

// txios
//   .get({
//     url: '/home/multidata',
//     showLoading: true,
//     interceptor: {
//       requestInterceptor: (config) => {
//         console.log('单独请求的config')
//         return config
//       },
//       responseInterceptor: (res) => {
//         console.log('单独响应的config')
//         return res
//       }
//     }
//   })
//   .then((res) => {
//     console.log(res, 5555)
//   })
